package 并发编程06.线程池技术;

/**
 * @author：idea
 * @date：2018/8/12
 *
 */
public class ThreadItem implements Runnable{

    @Override
    public void run() {
        System.out.println("this is "+Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        DeafultThreadPool<ThreadItem> pool=new DeafultThreadPool<>(20);
        for(int i=0;i<10;i++) {
            //初始化10个线程内容
            ThreadItem t1=new ThreadItem();
            pool.execute(t1);
        }
    }
}
